package com.app.micaihu.view.army.header

import android.content.Context
import com.app.base.BaseHeaderView
import com.app.micaihu.R
import com.app.micaihu.view.bean.UserInfo
import com.app.micaihu.view.utils.loadCircleImage
import com.blankj.utilcode.util.ActivityUtils
import kotlinx.android.synthetic.main.army_medal_header.view.*

/**
 * 军团勋章列表 头部
 */
class ArmyMedalHeader(context: Context) : BaseHeaderView(context = context) {

    override fun getLayoutId() = R.layout.army_medal_header

    override fun setData() {

    }

    override fun addListeners() {
    }

    fun setUserData(userInfo: UserInfo) {
        ivHeadPic.loadCircleImage(userInfo.avatar, R.drawable.user_head_def)
        tvUserName.text = userInfo.nickname
        tvArmyModalCount.text = "已获得${userInfo.honourCount}个勋章"

    }
}